using System;
using System.Collections.Generic;
using System.Text;


namespace Configurations
{
    public class DB
    {
        private static string DBFile = "rozklad.mdb";
        private static string mType = DB.OleDBType;


        public static string ConnectionString
        {
            get
            {
                return @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Configurations.DB.DBFile + ";";
            }
        }

        public static string OleDBType
        {
            get
            {
                return "OLEDB";
            }
        }

        public static string DBType
        {
            get
            {
                return mType;
            }
        }

    }
}

namespace BRozklad
{
    class Configuration
    {
//        public static Random rand = new Random((int)DateTime.Now.Millisecond);
        public static Random rand = new Random(0);

        public static string DBFile = @"rozklad.mdb";
        public static Int64 iii = 0;
        public static int pos = 0;
        public static int maxpos = 10;

        public static int costforgoodres = 0;
        public static int goodcost = 2000000000;
        public static int mediancost = 2000000000;
        public static int curentPeople = 0;

        public static int resultsize;
        public static int rescost;
        public static int[,] result;
        public static int[,] result2;
        public static int[,] result3;
        public static GAs.GA ga;

        public static TimeSpan ts;

        public static bool[] dowork = { true };
        public static bool[] canfill = { true };

        public static void Init()
        {
            curentPeople = 0;
        }
    }
}
